<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    'use strict';

    // Map
    let map = new Map([['tom', 73], ['jack', 88]]);
    // get
    const name = map.get('tom');
    console.log(name);
    // set
    map.set('admin', 89);
    console.log(map);

    // Set
    let set = new Set([1, 3, 4, 3, 1, 3]);
    console.log(set); // {1, 3, 4}
    // add
    set.add(8);
    // delete
    set.delete(1);
    console.log(set);
    // has
    console.log([3, 4, 8] in set);
    console.log(set.has(3));
</script>
</body>
</html>